<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<jsp:useBean id="GC_current_time" class="java.util.Date"/>
<div class="page_top">
    <time><fmt:formatDate value="${GC_current_time}" type="both" dateStyle="long" pattern="yyyy-MM-dd"/></time>
    <a class="page_top_message" href="javascript:;">消息</a>
    <a id="GC_account_querybtn" style="display: none;" class="page_top_query" href="javascript:;">查询/导出</a>
    <a id="GC_place_querybtn" style="display: none;" class="promocode_add" href="javascript:;">新增</a>
    <a id="GC_coupon_querybtn" style="display: none;" class="promocode_add" href="javascript:;">添加</a>
</div>
<script type="application/javascript">
    <%-- 显示当前界面中，需要显示的 a标签 --%>
    $("#" + $("body").attr("name") + "_querybtn").show();

    $("#GC_account_querybtn").click(function () {
        window.location.href = '${basePath}v2/account/searchView';
    });

    $("#GC_coupon_querybtn").click(function () {
        window.location.href = '${basePath}v2/promocode/addView';
    });
</script> 